package trlygjj.tanruiliyigenjinjin.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 转班学员记录
 */
@Getter@Setter
public class TransferRecord {
    /**
     * 审核中
     */
    public static final int  STATE_UNDER = 0;
    /**
     * 审核通过
     */
    public static final int  STATE_PUSS = 1;
    private Long id;
    /**
     * 转班学员
     */
    private ProfessionalStuent professionalStudent;
    /**
     * 就得班级
     */
    private Grade oldgrade;
    /**
     * 新的班级
     */
    private Grade newgrade;
    /**
     * 转班状态
     */
    private Integer  satate = STATE_UNDER;

    /**
     * 学费对象
     */
    private Tuition tuition;

    /**
     * 销售对象
     */
    private Employee marketer;

    /**
     * 转班时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd" ,timezone="GMT+8")
    private Date transferrecordDate ;
}